package com.ks.user.controller;


import com.ks.core.base._ControllerBase;
import com.ks.core.core.Result;
import com.ks.user.service.IMemberVisitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 表结构公共字段 前端控制器
 * </p>
 *
 * @author kingdee123
 * @since 2021-04-30
 */
@RestController
@RequestMapping("/memberVisit")
@Api(value = "小程序浏览量模块", description = "小程序浏览量模块")
public class MemberVisitController extends _ControllerBase {

    @Autowired
    private IMemberVisitService memberVisitService;

    @PostMapping("/getMemberVisitCount")
    @ApiOperation(value = "租户小程序累计访问量", notes = "租户小程序累计访问量")
    public Object getMemberVisitCount(){
        Map<String, Object> memberVisitCount = memberVisitService.getMemberVisitCount(getContext());
        return Result.success(memberVisitCount);
    }



}

